package com.lins.storedisk.dto;

/**
 * 注册参数
 * @Author linshuo
 * @Date 2023/1/17 15:50
 * 若参数未通过Validated校验，会抛出异常：
 * Resolved [org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
 * 这里使用ExceptionHandler异常拦截器来处理异常，并返回json
 */
//@Data //发生“实际参数列表和形式参数列表长度不同”
public class RegisterDTO extends LoginDTO {
    String password2;
    String phoneNum;
    String msmCode;


    public RegisterDTO(String username, String password, String verification) {
        super(username, password, verification);
    }

    public String getPassword2() {
        return password2;
    }

    public void setPassword2(String password2) {
        this.password2 = password2;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getMsmCode() {
        return msmCode;
    }

    public void setMsmCode(String msmCode) {
        this.msmCode = msmCode;
    }
}
